package org.lds.logger.xml;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class XMLAsyncAppenderGroup {
    @XStreamAlias("name")
    @XStreamAsAttribute
    private String name;

    @XStreamAlias("clazz")
    @XStreamAsAttribute
    private String clazz;

    @XStreamAlias("queueSize")
    @XStreamAsAttribute
    private String queueSize;

    @XStreamImplicit(itemFieldName="appenderRef")
    private List<XMLAppenderReference> asyncAppenderRef;

    @XStreamAlias("extJson")
    private String extJson;

}
